﻿<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        Title="Report" Width="600" Height="600" WindowStartupLocation="CenterScreen">
    <TabControl>
        <!--Details-->
        <TabItem Header="Details">
            <StackPanel Margin="10">
                <Label Padding="5">URL:</Label>
                <TextBox Name="url" IsReadOnly="True"/>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <StackPanel>
                        <Label>Content length:</Label>
                        <TextBox HorizontalAlignment="Left" Width="150" Name="contLen" IsReadOnly="True" />
                        <Label>Server:</Label>
                        <TextBox HorizontalAlignment="Left" Width="150" Name="server" IsReadOnly="True" />
                    </StackPanel>
                    <StackPanel Grid.Column="1">
                        <Label>Last modified:</Label>
                        <TextBox HorizontalAlignment="Left" Width="150" Name="lastMod" IsReadOnly="True" />
                        <Label>Elapsed time (ms):</Label>
                        <TextBox HorizontalAlignment="Left" Width="150" Name="time" IsReadOnly="True" />
                    </StackPanel>
                </Grid>
                <Label>Title:</Label>
                <TextBox Name="title" IsReadOnly="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" Height="44"/>
                <Label>Description:</Label>
                <TextBox Height="80" Name="desc" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" IsReadOnly="True" />
                <Label>Keywords:</Label>
                <TextBox Height="80" Name="keywords" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" IsReadOnly="True" />
                <Label>Heading:</Label>
                <TextBox Name="heading" IsReadOnly="True" Height="44" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" />
            </StackPanel>
        </TabItem>
        <!--Violations-->
        <TabItem Header="Violations" Name="viols">
            <ListBox Name="violsList" />
        </TabItem>
        <!--Keywords-->
        <TabItem Header="Keywords">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="40" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <Button HorizontalAlignment="Left" Margin="5" Name="xprtexcel">Export to Excel</Button>

                <ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                    <Grid>
                        <!--<Grid.RowDefinitions>
                        <RowDefinition Height="40" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>-->
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <StackPanel Grid.Row="1" Margin="5">
                            <Label>One Word:</Label>
                            <DataGrid Name="datagrid1" />
                        </StackPanel>
                        <StackPanel Grid.Row="1" Grid.Column="1" Margin="5">
                            <Label>Two words:</Label>
                            <DataGrid Name="datagrid2" />
                        </StackPanel>
                        <StackPanel Grid.Row="1" Grid.Column="2" Margin="5">
                            <Label>Three Words:</Label>
                            <DataGrid Name="datagrid3" />
                        </StackPanel>
                    </Grid>
                </ScrollViewer>
            </Grid>
            <!--</ScrollViewer>-->
        </TabItem>
        <!--Links-->
        <TabItem Header="Links">
            <StackPanel>
                <Button HorizontalAlignment="Left" Name="brokenlinks">Check broken links</Button>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <StackPanel Margin="10">
                    <Label>Internal links:</Label>
                    <TextBox Height="200" Name="intLinks" IsReadOnly="True" VerticalScrollBarVisibility="Auto" />
                </StackPanel>
                <StackPanel Grid.Row="1" Margin="10">
                    <Label>External links:</Label>
                    <TextBox Height="200" Name="extLinks" IsReadOnly="True" VerticalScrollBarVisibility="Auto" />
                </StackPanel>
            </Grid>
            </StackPanel>
        </TabItem>
        <!--Headers-->
        <TabItem Header="Headers">
            <TextBlock Name="headers" />
        </TabItem>
        <!--HTML-->
        <TabItem Header="HTML">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                    <!--<RowDefinition Height="*" />-->
                </Grid.RowDefinitions>
                <StackPanel Orientation="Horizontal" Height="40">
                    <Label VerticalAlignment="Center">Line:</Label>
                    <TextBox Width="40" Height="25" Name="line" />
                    <Label VerticalAlignment="Center">column:</Label>
                    <TextBox Width="40" Height="25" Name="col" />
                    <Button Height="25" Margin="5" Width="40" Name="findbtn">Find</Button>
                    <Button Height="25" Name="validate">Validate markup</Button>
                </StackPanel>
                <!--<ScrollViewer>-->
                    <!--<StackPanel>-->
                <Grid Grid.Row="1">
                    <!--<Grid.ColumnDefinitions>
                        <ColumnDefinition Width="30" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>-->
                    <ScrollViewer>
                        <StackPanel Orientation="Horizontal">
                        <TextBox Name="linenumber" Width="30" TextAlignment="Left"/>
                        <TextBox Grid.Column="1" Name="html" />
                        </StackPanel>

                    </ScrollViewer>
                </Grid>
                <!--<DataGrid Grid.Row="2" Visibility="Collapsed" Name="markuperrors"/>-->
                <!--</StackPanel>-->
                <!--</ScrollViewer>-->
            <!--</StackPanel>-->
            </Grid>
        </TabItem>
    </TabControl>
</Window>